package com.demo.scenic.mapper;

import com.demo.scenic.domain.BookedRecord;
import com.demo.scenic.domain.BookedRecordExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BookedRecordMapper {
    long countByExample(BookedRecordExample example);

    int deleteByExample(BookedRecordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BookedRecord record);

    int insertSelective(BookedRecord record);

    List<BookedRecord> selectByExample(BookedRecordExample example);

    BookedRecord selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BookedRecord record, @Param("example") BookedRecordExample example);

    int updateByExample(@Param("record") BookedRecord record, @Param("example") BookedRecordExample example);

    int updateByPrimaryKeySelective(BookedRecord record);

    int updateByPrimaryKey(BookedRecord record);
}